<!DOCTYPE html>
<html lang="en">
<head>
    {% block bengin %}{% endblock %}
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="">

    <title>康复社区title</title>

    <!-- Bootstrap core CSS -->
    <link href="../../static/css/bootstrap.min.css" rel="stylesheet">

    <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
    <link href="../../static/css/bootstrapDemo/ie10-viewport-bug-workaround.css" rel="stylesheet">

    <!-- Custom styles for this template -->
    <link href="../../static/css/bootstrapDemo/dashboard.css" rel="stylesheet">

    <!-- Just for debugging purposes. Don't actually copy these 2 lines! -->
    <!--[if lt IE 8]>
    <script src="js/ie8-responsive-file-warning.js"></script>
    <![endif]-->
    <script src=" ../../static/js/ie-emulation-modes-warning.js"></script>

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>

<body>

<nav class="navbar navbar-inverse navbar-fixed-top">
    <div class="container-fluid">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar"
                    aria-expanded="false" aria-controls="navbar">
                <span class="sr-only"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="#">康复社区</a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
            <ul class="nav navbar-nav navbar-right">
                {% if permiss_str %}
                     <li><a href="#">{{ permiss_str }}</a></li>
                {% endif %}

                {% if username %}
                    <li ><a href="{{ url_for('userBlue.persionalInfo') }}"><img src="{{ src }}" style="width: 24px; height: 24px;" alt="请上传头像"></a></li>
                    <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true"
                       aria-expanded="false">{{ username }} <span class="caret"></span></a>
                    <ul class="dropdown-menu">
                        <li><a href="{{ url_for('userBlue.persionalInfo') }}">个人资料</a></li>
                        <li><a href="#">我的帖子</a></li>
                        <li><a href="#">我的回复</a></li>
                        <li role="separator" class="divider"></li>
                        <li><a href="{{ url_for('userBlue.logout') }}">登出</a></li>
                    </ul>
                    </li>
                {% else %}
                     <li><a href="{{ url_for('userBlue.login') }}">登陆</a></li>
                {% endif %}
            </ul>
            <form class="navbar-form navbar-right">
                <input type="text" class="form-control" placeholder="Search...">
            </form>
        </div>
    </div>
</nav>

<div id="toChangTab" class="container-fluid">
    <div class="row">
        <div class="col-sm-3 col-md-2 sidebar">
            <ul class="nav nav-sidebar">
                <li class="active"><a href="{{ url_for('communityBlueName.communityMain') }}">今日热门 <span class="sr-only">(current)</span></a></li>
{#                <li ><a href="#">Reports</a></li>#}
            </ul>
            <ul class="nav nav-sidebar">
                <li><a href="{{ url_for('communityBlueName.communityWaike') }}">外科板块</a></li>
                <li><a href="{{ url_for('communityBlueName.communityFuchan') }}">妇产科板块</a></li>
                <li><a href="{{ url_for('communityBlueName.communityEye') }}">眼科板块</a></li>
                <li><a href="{{ url_for('communityBlueName.communityErbihou') }}">耳鼻喉科板块</a></li>
                <li><a href="{{ url_for('communityBlueName.communityKouqiang') }}">口腔科板块</a></li>
            </ul>
            <ul class="nav nav-sidebar">
		<li><a href="{{ url_for('communityBlueName.back_home') }}">返回首页</a></li>
                <li><a href="{{ url_for('communityBlueName.communityDoctor') }}">医师社区</a></li>
                <li><a href="{{ url_for('communityBlueName.contact') }}">联系我们</a></li>
            </ul>
        </div>
<!--这个div用于右侧页展示，可供子类模板替换-->
        {% block tochange %}

        {% endblock %}


    </div>
    </div>
</div>


<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="../../static/js/jquery-3.1.1.min.js"></script>
<script>window.jQuery || document.write('<script src="js/jquery.min.js"><\/script>')</script>
<script src="../../static/js/bootstrap.min.js"></script>
<!-- Just to make our placeholder images work. Don't actually copy the next line! -->
<script src="../../static/js/holder.min.js"></script>
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<script src="../../static/js/ie10-viewport-bug-workaround.js"></script>
</body>
</html>
